<?php
return [
    /* [
         'path' => '/login',
         'component' => 'login/index',
         'hidden' => true
     ],
     [
         'path' => '/404',
         'component' => '404',
         'hidden' => true
     ],*/
    [
        'path' => '/',
        'component' => 'Layout',
        'redirect' => '/dashboard',
        'children' => [
            [
                'path' => 'dashboard',
                'name' => 'Dashboard',
                'component' => 'dashboard/index',
                'meta' => ['title' => '控制面板', 'icon' => 'dashboard']
            ]
        ]
    ],
    [
        'path' => '/banner',
        'component' => 'Layout',
        'redirect' => '/banner/index',
        'name' => 'banner',
        'meta' => ['title' => '轮播管理', 'icon' => 'el-icon-picture-outline'],
        'children' => [
            [
                'path' => 'index',
                'name' => 'bannerIndex',
                'component' => 'banner/index',
                'meta' => ['title' => '轮播列表', 'icon' => 'el-icon-picture-outline']
            ],
            [
                'path' => 'form',
                'name' => 'bannerForm',
                'hidden' => true,
                'component' => 'banner/form',
                'meta' => ['title' => '操作表单', 'icon' => 'form']
            ]
        ]
    ],
    [
        'path' => '/navs',
        'component' => 'Layout',
        'redirect' => '/navs/index',
        'name' => 'navs',
        'meta' => ['title' => '导航管理', 'icon' => 'el-icon-position'],
        'children' => [
            [
                'path' => 'index',
                'name' => 'navsIndex',
                'component' => 'navs/index',
                'meta' => ['title' => '导航列表', 'icon' => 'el-icon-position']
            ],
            [
                'path' => 'form',
                'name' => 'navsForm',
                'hidden' => true,
                'component' => 'navs/form',
                'meta' => ['title' => '操作表单', 'icon' => 'form']
            ]
        ]
    ],
    [
        'path' => '/setting',
        'component' => 'Layout',
        'redirect' => '/setting',
        'name' => 'log',
        'meta' => ['title' => '设置中心', 'icon' => 'el-icon-setting'],
        'children' => [
            [
                'path' => 'agreement',
                'name' => 'agreement',
                'component' => 'setting/agreement.vue',
                'meta' => ['title' => '协议配置', 'icon' => 'el-icon-upload2']
            ],
            [
                'path' => 'upload',
                'name' => 'upload',
                'component' => 'setting/upload.vue',
                'meta' => ['title' => '上传配置', 'icon' => 'el-icon-upload2']
            ]
        ]
    ],
    [
        'path' => '/user',
        'component' => 'Layout',
        'redirect' => '/user/index',
        'name' => 'user',
        'meta' => ['title' => '用户管理', 'icon' => 'el-icon-user'],
        'children' => [
            [
                'path' => 'index',
                'name' => 'userIndex',
                'component' => 'user/index',
                'meta' => ['title' => '用户列表', 'icon' => 'user']
            ],
            [
                'path' => 'form',
                'name' => 'userForm',
                'hidden' => true,
                'component' => 'user/form',
                'meta' => ['title' => '操作表单', 'icon' => 'form']
            ]
        ]
    ],
    [
        'path' => '/package',
        'component' => 'Layout',
        'redirect' => '/package/index',
        'name' => 'package',
        'meta' => ['title' => '包更新管理', 'icon' => 'el-icon-setting'],
        'children' => [
            [
                'path' => 'index',
                'name' => 'packageIndex',
                'component' => 'package/index',
                'meta' => ['title' => '包更新列表', 'icon' => 'el-icon-setting']
            ],
            [
                'path' => 'form',
                'name' => 'packageForm',
                'hidden' => true,
                'component' => 'package/form',
                'meta' => ['title' => '操作表单', 'icon' => 'form']
            ]
        ]
    ],
    [
        'path' => '/update_log',
        'component' => 'Layout',
        'redirect' => '/update_log/index',
        'name' => 'update_log',
        'meta' => ['title' => '更新日志', 'icon' => 'el-icon-refresh'],
        'children' => [
            [
                'path' => 'index',
                'name' => 'index',
                'component' => 'update_log/index',
                'meta' => ['title' => '更新记录', 'icon' => 'el-icon-refresh']
            ],
            [
                'path' => 'form',
                'name' => 'updateLogForm',
                'hidden' => true,
                'component' => 'update_log/form',
                'meta' => ['title' => '操作表单', 'icon' => 'form']
            ]
        ]
    ],
    [
        'path' => '/feedback',
        'component' => 'Layout',
        'redirect' => '/feedback/index',
        'name' => 'feedback',
        'meta' => ['title' => '留言反馈', 'icon' => 'el-icon-box'],
        'children' => [
            [
                'path' => 'index',
                'name' => 'index',
                'component' => 'feedback/index',
                'meta' => ['title' => '留言反馈', 'icon' => 'el-icon-box']
            ]
        ]
    ],
    [
        'path' => '/notice',
        'component' => 'Layout',
        'redirect' => '/notice/index',
        'name' => 'notice',
        'meta' => ['title' => '通知管理', 'icon' => 'el-icon-bell'],
        'children' => [
            [
                'path' => 'index',
                'name' => 'noticeIndex',
                'component' => 'notice/index',
                'meta' => ['title' => '通知列表', 'icon' => 'el-icon-bell']
            ],
            [
                'path' => 'form',
                'name' => 'noticeForm',
                'hidden' => true,
                'component' => 'notice/form',
                'meta' => ['title' => '操作表单', 'icon' => 'form']
            ]
        ]
    ]
];
